﻿#include "CmdThreeDCloudMapSidebarUpdateFixedParameter.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDCloudMapSidebarUpdateFixedParameter::CmdThreeDCloudMapSidebarUpdateFixedParameter()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDCloudMapSidebarUpdateFixedParameter::~CmdThreeDCloudMapSidebarUpdateFixedParameter()
    {
    }

    bool CmdThreeDCloudMapSidebarUpdateFixedParameter::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDCloudMapSidebarUpdateFixedParameter(m_windowId, m_index);
        return true;
    }

    void CmdThreeDCloudMapSidebarUpdateFixedParameter::undo()
    {
    }

    void CmdThreeDCloudMapSidebarUpdateFixedParameter::redo()
    {
        // execute();
    }

    void CmdThreeDCloudMapSidebarUpdateFixedParameter::setThreeDCloudMapSidebarFixedParameter(int windowId, int index)
    {
        m_windowId = windowId;
        m_index = index;
    }

} // namespace PostCommand
